This document describes the installation and use of two freely available environments under OS X, one that consists of:
and one that consists of:
jGrasp is less-sophisticated than Xcode but easier to use.
Then you need to download the Xcode installation files:
If you are going to use jGrasp as your integrated development environment (IDE) you need to also download:
You are now ready to start developing in C/C++ using Xcode as your IDE.
You are now ready to start developing in C/C++ and you have two ways to proceed, depending on your personal preferences. You can use jGrasp as your IDE or you can use Xcode as your IDE>
#include <iostream> int main(int argc, char **argv) { std::cout << "Testing 1, 2, 3\n"; return (0); }into the editing window.
testing.cpp
.Depending on what else is installed on your computer, this will either cause the message "Testing 1, 2, 3" to be written into the jGrasp Run I/O window or will open a command shell window and execute the program there.
The Build menu contains the entries Compile, Compile and Link, Make, and Run (among others). The Compile entry can be used to compile an individual source file. The Compile and Link entry is not very useful because the process of indicating which files should be linked is akward. Hence, it is best to use the Make entry.
The Make entry simply calls the
make utility (which must be
in your path -- see the discussion in the installation instructions above).
The make utility uses a makefile
(with a default name of makefile
) in the working directory.
You can, of course, create/edit this file with jGrasp.
Note that when you run an application from withing jGrasp it assumes that
the executable is named a.out
.
Copyright 2019